Dynomotion

Group: DynoMotion Message: 8721 From: Hugh Sontag Date: 11/25/2013
Subject: KMotionCNC doesn't like large GCode files?
Hi Tom,

When I open a particular GCode file, and click the start button (the right arrow), the arrow changes to two vertical parallel lines, and the button background is red.

But nothing else happens.

I get a similar behavior if I open the file and click Single Step. The marker doesn't change from the first line.

Is there a max size or some other limitation in KMotionCNC? Do you have any other ideas as to why this might happen?

I've attached a screen shot of KMotionCNC when this is happening, and a the GCode file.

Thanks,
Hugh

  @@attachment@@
Group: DynoMotion Message: 8722 From: Tom Kerekes Date: 11/25/2013
Subject: Re: KMotionCNC doesn't like large GCode files? [2 Attachments]
Hi Hugh,

It isn't the file size.  The problem is that the file has MAC style line endings (\r) instead of Windows style line endings (\r\n)

We should handle that better.   There are utilities to change the endings.

Regards
TK

Group: DynoMotion Message: 8723 From: Hugh Sontag Date: 11/25/2013
Subject: Re: KMotionCNC doesn't like large GCode files?
No problem, I can change the line endings. It would be nice to have an error message, though.

Hugh


On Mon, Nov 25, 2013 at 2:55 PM, Tom Kerekes <tk@...> wrote:
 

Hi Hugh,

It isn't the file size.  The problem is that the file has MAC style line endings (\r) instead of Windows style line endings (\r\n)

We should handle that better.   There are utilities to change the endings.

Regards
TK

Group: DynoMotion Message: 8725 From: eric_kato_sanders Date: 11/25/2013
Subject: Re: KMotionCNC doesn't like large GCode files?
A quick and dirty way of fixing this within the KMotionCNC software is to add these two lines to the
void CKMotionCNCDlg::LoadFile(int thread,bool ResetPosition) function:

/**************************************/
/* fix any non standard linefeeds*/
   s.Replace("\n", "");
   s.Replace("\r", "\r\n");
/**************************************/

   m_Editor.SetText(s);
   m_Editor.EmptyUndoBuffer();
   m_Editor.SetSavePoint();
   DisplayedCurrentLine=-1;

 



---In DynoMotion@yahoogroups.com, <hsontag@...> wrote:

No problem, I can change the line endings. It would be nice to have an error message, though.

Hugh


On Mon, Nov 25, 2013 at 2:55 PM, Tom Kerekes <tk@...> wrote:
 
Hi Hugh,

It isn't the file size.  The problem is that the file has MAC style line endings (\r) instead of Windows style line endings (\r\n)

We should handle that better.   There are utilities to change the endings.

Regards
TK